import { Navigate, RouteObject } from 'react-router-dom';

import Layout from '../src/Layout';
import Upload from '../src/pages/upload';
import Video from '../src/pages/video';

export const routes: RouteObject[] = [
  {
    path: '/',
    element: <Layout />,
    children: [
      { index: true, element: <Navigate to="/upload" replace /> },
      {
        path: '/upload',
        element: <Upload />,
      },
      {
        path: '/video',
        element: <Video />,
      },
    ],
  },
];
